import { post } from "../utils/request";

/**
 * 用户登录
 * @param {*} data
 * @returns
 */
export const userLoginAPI = (data) => post("/auth/login", data);

/**
 * 用户注册
 * @param {*} data
 * @returns
 *  {
 *    "userName": "string",
 *    "password": "string",
 *    "nickName": "string",
 *    "avatar": "string",
 *    "address": "string",
 *    "mobile": "string"
 *   }
 */
export const userRegAPI = (data) => post("/auth/reg", data);

/**
 *
 * @param {*} data
 * @returns
 */
export const photoFileLoadAPI = (data) => post("/common/upload", data);
